package com.cs2340.taskplusplus;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class TaskView extends Activity implements OnClickListener
{
	private String name, parent;
	private Task task;
	
	public void onCreate(Bundle b)
	{
		super.onCreate(b);
		this.setContentView(R.layout.taskview);
		name = this.getIntent().getExtras().getString("Task Name");
		parent = this.getIntent().getExtras().getString("Task Parent Table");		
		task = new Task(parent, name);
		TextView v = (TextView) findViewById(R.id.taskview_TaskName);
		v.setText(task.getName());
		TextView v2 = (TextView) findViewById(R.id.taskview_Desc);
		v2.setText(task.getDescription());
	}

	public void onClick(View v) 
	{
		
	}

}
